import { Allow, IsNumber, IsString } from 'class-validator';
import { CommonColumnEntity } from '../../../../util/entity/common.column.entity';

export class CreateBookmarkDto extends CommonColumnEntity {
  @IsNumber()
  type: number; //类型（字典）
  @IsString()
  name: string; //名称
  @IsString()
  link: string; //网页链接
  @Allow()
  count?: number; //点击次数
  @Allow()
  rate?: number; //评分（1-10分）
  @Allow()
  imageUrl: string;
}
